feat: add function that converts chemical formula to hill notation#335
feat: add function that converts chemical formula to hill notation#335yucongalicechen wants to merge 1 commit intodiffpy:mainfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #335 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 9
Lines 516 519 +3
=========================================
+ Hits 516 519 +3
🚀 New features to boost your workflow:
|
sbillinge
left a comment
There was a problem hiding this comment.
I am not sure this is the right approach. I think it might be more reusable if we take a diffpy.structure object and write a method that will output hill notation.
I think this function is only for converting the chemical formula to hill notation though. After the user specifies the chemical formula, I'm thinking of the following steps: 1. convert to hill notation, 2. use it to extract relevant cif files, 3. compute density for each cif file, 4. return the average density (or other depending on phase). I plan to have one function each for each step. Does this sound good? |
I was just suggesting that this function could be a method of |
Task 1 in #333
@sbillinge ready for review! I splitted the issue into multiple steps, and this is the first one. For this issue I think this might be a better way to organize the substeps since everything is in one place.